package com.ruoyi.system.mapper;

import com.ruoyi.common.core.domain.DTO.SelectComboCardConfigBO;
import com.ruoyi.common.core.domain.DTO.SelectComboCardConfigVO;
import com.ruoyi.common.core.domain.entity.ComboCardConfig;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 参数配置 数据层
 *
 * @author ruoyi
 */
@Mapper
@Repository
public interface ComboCardConfigMapper {
    void insertComboCardConfig(ComboCardConfig comboCardConfig);
    void updateComboCardConfig(ComboCardConfig comboCardConfig);
    List<SelectComboCardConfigVO> selectComboCardConfig(SelectComboCardConfigBO selectComboCardConfigBO);
    //根据卡号卡密查询卡片
    SelectComboCardConfigVO selectByCardNumberAndCardKey(@Param("cardNumber") String cardNumber,@Param("cardKey") String cardKey);
    //根据套餐id和批次查询数量
    Long selectCountByComboIdAndBatch(@Param("comboId") Long comboId,@Param("batch") Integer batch);
}
